package com.yuyu.mapper;

/***********************************************************************
 * Module:  EmployeeMapper.java
 * Author:  xiaoyuyu
 * Purpose: Defines the Interface EmployeeMapper
 ***********************************************************************/

import com.yuyu.bean.Employee;
import com.yuyu.bean.EmployeePageDataOfMybatis;

import java.util.*;

/** @pdOid cb088e87-b8d1-4cb7-8edd-968ddc91ef22 */
public interface EmployeeMapper {
    /** @param employee
     * @pdOid 62514846-39e5-4fb9-b1cc-b8f23fbc368d */
    int addEmployee(Employee employee);
    /** @param list
     * @pdOid ac570755-d39c-45d7-9c62-5347fce153d8 */
    int deleteEmployeeById(List<Integer> list);
    /** @param employee
     * @pdOid 67fc7145-533c-4075-88df-465569de6554 */
    int editEmployee(Employee employee);
    /** @param pageDataOfMybatis
     * @pdOid 9db0e575-fda7-4c70-8dc5-a513fcffa47f */
    List<Employee> filtrateEmployee(EmployeePageDataOfMybatis pageDataOfMybatis);
    //获得总记录数
    int getEmployeeVarNum();
    //根据登录名查询员工资料
    Employee getEmployeeByUserName(String username);
    //通过编码查询员工资料
    Employee getEmployeeById(Integer id);
    //为EXCEL查找所有员工信息
    List<Map<String,Object>> getAllEmployeeExportExcel();
    //获得纪录总条数，带条件
    int getEmployeeVarNumForCondition(String conditon);

}
